<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>中国社区</title>
  <link rel="stylesheet" href="../../css/management/deliveryManagement.css">
  <link rel="stylesheet" href="../../css/management/managementTabs.css">
  <link rel="stylesheet" href="../../css/public/base.css">
  <link rel="stylesheet" href="../../layui/css/layui.css">
  <script src="../../js/public/jquery-3.3.1.js"></script>
  <script src="../../js/management/management.js"></script>
</head>
<body>
<div class="managementTabs">
    <div class="mt-left">
      <ul>
        <li><span class="circle"></span><a href="../management/fundTransfer.html"></a>资金划拨</li>
        <li><span class="circle"></span><a href="../management/dividendManagement.html"></a>分红管理</li>
        <li class="cur"><span class="circle"></span><a href="../public/nav.html"></a>提货管理</li>
        <li><span class="circle"></span><a href="../management/openList.html"></a>建仓列表</li>
        <li><span class="circle"></span><a href="../management/reinvestList.html"></a>复投列表</li>
        <li><span class="circle"></span><a href="../management/withdrawList.html"></a>提现列表</li>
        <li><span class="circle"></span><a href="../management/rechargeList.html"></a>充值列表</li>
        <li><span class="circle"></span><a href="../management/manualRecharge.html"></a>手动充值</li>
        <li><span class="circle"></span><a href="../management/priceManagement.html"></a>RST价格管理</li>
      </ul>
    </div>
    <div class="deliveryManagement">
      <div class="operating">
        <div class="layui-form">
          <span>状态</span>
          <div style="display:inline-block;width: 196px;margin-left: 20px;margin-right: 40px;">
            <select name="condition" lay-filter="condition">
              <option value="">请选择</option>
              <option value="0">驳回</option>
              <option value="1">待核算</option>
              <option value="2">待支付</option>
              <option value="3">待发货</option>
              <option value="4">已完成</option>
            </select>
          </div>
        </div>
        <div>
          <span>支付时间</span>
          <input type="text" class="layui-input" id="payTime" placeholder="请输入...">
        </div>
        <div>
          <span>审核时间</span>
          <input type="text" class="layui-input" id="reviewTime" placeholder="请输入...">
        </div>
        <div>
          <span>申请人</span>
          <input type="text" placeholder="请输入...">
        </div>
        <div>
          <span>汇款人</span>
          <input type="text" placeholder="请输入...">
        </div>
        <div>
          <span>付款卡号</span>
          <input type="text" placeholder="请输入...">
        </div>
        <div>
          <div class="searchBtn">查询</div>
          <div class="resetBtn">重置</div>
          <div class="exportBtn">导出</div>
      </span>
        </div>
      </div>
      <div class="rl-table">
        <table class="layui-hide" id="test" lay-filter="test"></table>
      </div>
    </div>
  </div>
<script src="../../layui/layui.js"></script>
<script type="text/html" id="barDemo">
  <a style="color: #2d528f;margin-right: 30px;" lay-event="detail">核算</a>
  <a style="color: #2d528f;margin-right: 30px;display: none;" lay-event="edit">发货</a>
  <a style="color: #ff0000;" lay-event="del">驳回</a>
</script>
<script>
  $("#nav").height($(window).height());
  $(window).resize(function () {
    $("#nav").height($(window).height());
  });
  function aa() {
    /*if(isNaN($('.aa').val())){
      alert("请输入数字！")
    }*/
    console.log(parseFloat($('.aa').val()));
  }
  $(".layui-layer-shade").width(window.screen.width).height(window.screen.height);
  $(window).resize(function () {
    $(".layui-layer-shade").width(window.screen.width).height(window.screen.height);
  });
  layui.use('table', function () {
    var table = layui.table;
    table.render({
      elem: '#test'
//      , url: '/demo/table/user/'
//      ,skin: 'nob'
//        ,limit:[5,10,20,50]
      , cols: [[
        {type: 'checkbox'}
        , {field: 'id', title: 'ID'}
        , {field: 'accountNum', title: '账号', minWidth:100}
        , {field: 'applicant', title: '申请人', minWidth:80}
        , {field: 'applyBPX', title: '申请BPX', minWidth:100}
        , {field: 'wildWeight', title: '野山参重量', minWidth:110}
        , {field: 'wildWeight1', title: '5g以下人参数量', minWidth:150}
        , {field: 'wildWeight2', title: '5~7g以下人参数量', minWidth:170}
        , {field: 'wildWeight3', title: '7~9g以下人参数量', minWidth:170}
        , {field: 'wildWeight4', title: '9~11g以下人参数量', minWidth:170}
        , {field: 'wildQuantity', title: '野山参数量', minWidth:110}
        , {field: 'packageCost', title: '包装费用', minWidth:95}
        , {field: 'courierFees', title: '快递费用', minWidth:95}
        , {field: 'totalAccount', title: '核算总额', minWidth:95}
        , {field: 'payAmount', title: '打款金额', minWidth:95}
        , {field: 'receivableAmount', title: '应收金额', minWidth:95}
        , {field: 'remittance', title: '汇款人', minWidth:80}
        , {field: 'payChannel', title: '付款渠道', minWidth:95}
        , {field: 'currencyAccount', title: '币网账号', minWidth:95}
        , {field: 'receiver', title: '收货人', minWidth:80}
        , {field: 'paycardNum', title: '付款卡号', minWidth:150}
        , {field: 'shipAddress', title: '收货地址', minWidth:155}
        , {field: 'phone', title: '手机号', minWidth:115}
        , {field: 'package', title: '包装', minWidth:80}
        , {field: 'packageSize', title: '包装尺寸', minWidth:110}
        , {field: 'gsConfigure', title: '人参配置', minWidth:150}
        , {field: 'certificate', title: '是否有证书', minWidth:110}
        , {field: 'channel', title: '渠道', minWidth:95}
        , {field: 'detail', title: '详情', minWidth:150}
        , {field: 'cardNum', title: '卡号/账号', minWidth:150}
        , {field: 'status', title: '状态', minWidth:80}
        , {field: 'payTime', title: '支付时间', minWidth:160, sort: true}
        , {field: 'reviewTime', title: '审核时间', minWidth:160, sort: true}
        , {field: 'operate', title: '操作',minWidth:130, toolbar: '#barDemo', fixed: 'right'}
      ]]
      , data: [{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      },{
        "id": "01"
        , "accountNum": 12345678
        , "applicant": "张三"
        , "applyBPX": 2000
        , "wildWeight": "200g"
        , "wildQuantity": "200支"
        , "packageCost": "10.00"
        , "courierFees": "10.00"
        , "totalAccount": "10.00"
        , "payAmount": "10.00"
        , "receivableAmount": "2000.00"
        , "remittance": "张三"
        , "payChannel": "支付宝"
        , "currencyAccount": "张三"
        , "receiver": "张三"
        , "paycardNum": "1234567"
        , "shipAddress": "江苏省南京市"
        , "phone": 11111111111
        , "package": "纸盒"
        , "packageSize": "111*111*111"
        , "gsConfigure": "。。。。。。。。"
        , "certificate": "是"
        , "channel": "顺风"
        , "detail": "。。。。。。。。"
        , "cardNum": "11111111111111111"
        , "status": "已完成"
        , "payTime": "2018-01-01 18:00:00"
        , "reviewTime": "2018-01-01 18:00:00"
      }]
      , page: true
    });
    table.on('tool(test)', function(obj){
      var data = obj.data;
      if(obj.event === 'detail'){
        layer.open({
          type: 1
          ,id: 'accounting' //防止重复弹出
          ,area: ['710px !important','500px !important']
          ,title: "提货核算"
          ,content: $('#accountingBox')
          ,btn: ['提交', '重置']
          ,btnAlign: 'c' //按钮居中
          ,shade: 0
          //,shadeClose: true
          ,move: false
          ,resize: false
          ,yes: function(){
            layer.closeAll();
            layer.msg("核算完成")
          }
          ,btn2: function(){
            layer.closeAll();
          }
        });
      }else if(obj.event === 'edit'){
        layer.open({
          type: 1
          ,id: 'ship' //防止重复弹出
          ,area: ['500px !important','300px !important']
          ,title: "发货信息"
          ,content: $('#shipBox')
          ,btn: ['确认发货']
          ,btnAlign: 'c' //按钮居中
          ,shade: 0
          //,shadeClose: true
          ,move: false
          ,resize: false
          ,yes: function(){
            layer.closeAll();
            layer.msg("发货成功")
          }
          ,btn2: function(){
            layer.closeAll();
//            location.reload();
          }
        });
      } else if(obj.event === 'del'){
        layer.open({
          type: 0
          ,id: 'turnDown' //防止重复弹出
          ,area: ['400px !important','220px !important']
          ,title: "信息"
          ,content: '<p style="font-size: 16px;height: 40px;line-height: 40px">确认驳回申请?</p>'
          ,btn: ['确定', '取消']
          ,btnAlign: 'r' //按钮对齐方式
          ,shade: 0
          //,shadeClose: true
          ,move: false
          ,resize: false
          ,yes: function(){
            layer.closeAll();
            layer.msg("成功驳回")
          }
          ,btn2: function(){
            layer.closeAll();
          }
        });
        /*layer.confirm('真的删除行么', function(index){
          obj.del();
          layer.close(index);
        });*/
      }
    });
  });
  layui.use('laydate', function(){
    var laydate = layui.laydate;
    laydate.render({
      elem: '#payTime'
      ,type: 'datetime'
      ,theme: '#2d528f'
      , range: true
    });
    laydate.render({
      elem: '#reviewTime'
      ,type: 'datetime'
      ,theme: '#2d528f'
      , range: true
    });
  });
</script>
</body>
<div id="accountingBox" style="display: none">
  <div class="ob-line">
    <span>账号-真实姓名</span>
    <input type="text" placeholder="ADMIN-管理员" disabled>
  </div>
  <div class="ob-line">
    <span>电话号码</span>
    <input type="text" placeholder="请输入电话号码">
  </div>
  <div class="ob-line">
    <span>申请BPX</span>
    <input type="text" value="10000" disabled>
  </div>
  <div class="ob-line">
    <span style="vertical-align: top;margin-top: 10px;">实际野山参重量(g)</span>
    <div class="actualWeight">
      <div class="aw-lint">
        <input type="text" placeholder="请输入野山参重量" class="aa" onblur="aa()">×
        <input type="text" placeholder="请输入野山参数量" disabled>=
        <input type="text" placeholder="实际重量" disabled>
      </div>
      <p>5g以下</p>
      <div class="aw-lint">
        <input type="text" placeholder="请输入野山参重量">×
        <input type="text" placeholder="请输入野山参数量" disabled>=
        <input type="text" placeholder="实际重量" disabled>
      </div>
      <p>5-7g</p>
      <div class="aw-lint">
        <input type="text" placeholder="请输入野山参重量">×
        <input type="text" placeholder="请输入野山参数量" disabled>=
        <input type="text" placeholder="实际重量" disabled>
      </div>
      <p>7-9g</p>
      <div class="aw-lint">
        <input type="text" placeholder="请输入野山参重量">×
        <input type="text" placeholder="请输入野山参数量" disabled>=
        <input type="text" placeholder="实际重量" disabled>
      </div>
      <p>9-11g</p>
    </div>
  </div>
  <div class="ob-line">
    <span>实际野山参重量(g)</span>
    <input type="text" placeholder="0.00">
  </div>
  <div class="ob-line">
    <span>工本费用</span>
    <input type="text" placeholder="0.00" disabled>
  </div>
  <div class="ob-line">
    <span>快递费用</span>
    <input type="text" placeholder="0.00">
  </div>
  <div class="ob-line">
    <span>核算BPX数量</span>
    <input type="text" placeholder="请输入实际BPX数量">
  </div>
  <div class="ob-line">
    <span>收货地址</span>
    <input type="text" placeholder="请输入收货地址">
  </div>
</div>
<div id="shipBox" style="display: none">
  <div class="ob-line">
    <span>发货渠道</span>
    <input type="text" placeholder="请输入...">
  </div>
  <div class="ob-line">
    <span>发货详情</span>
    <input type="text" placeholder="请输入...">
  </div>
</div>
</html>